import java.awt.Color;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.MalformedURLException;
import java.net.URL;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.ImageIcon;
import javax.swing.JTextArea;

public class Emps extends JFrame implements ActionListener{

    private Toolkit toolkit;
   //static int i = 0;
    JButton logout =new JButton("Back");
    JTextArea text =new JTextArea("");
    LogInOut loginout;
    

    public Emps()
    {
    	;
    }
    
    public Emps(LogInOut loginouti) {
    	setTitle("Restaurant Master 2.0 - Employee Information");
        setSize(800, 600);
        toolkit = getToolkit();
        loginout=loginouti;
        
        Dimension size = toolkit.getScreenSize();
        setLocation((size.width - getWidth())/2, (size.height - getHeight())/2);
        setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);

        JPanel panel = new JPanel();
        getContentPane().add(panel);
        panel.setLayout(null);

		logout.addActionListener(this);
		logout.setBounds(25,525,100,30);
		panel.add(logout);
		int j=0;
		
		text.setText(text.getText()+LogInOut.printEmployees(j));
		text.setBounds(100,50,600,400);
		
		panel.add(text);

		
    }
    

    
    public void actionPerformed(ActionEvent event)
    {
    	Object source = event.getSource();
    	refresh();
    	
    	if (source == logout)
    	{
    		//logger.setuid(null);
    		setVisible(false);
    	}
    	
    	
    }
    
    public void refresh()
    {
    	
	}


    
}

    
